package com.example.base.mapper;

import com.example.base.entity.Unit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UnitMapper {
    List<Integer> getUnitsByBuildingId(Integer buildingId);
    Unit getUnitById(Integer id);
    List<Unit> getAllUnits();
}
